package models

import "gorm.io/gorm"

type User struct {
	gorm.Model
	Username string `gorm:"type:varchar(50)"`
	Password string `gorm:"type:varchar(50)"`
}
type Role struct {
	gorm.Model
	RoleName string `gorm:"type:varchar(50)"`
}
type Note struct {
	gorm.Model
	NoteName string `gorm:"type:varchar(50)"`
}
type Shop struct {
	gorm.Model
	ShopName string `gorm:"type:varchar(50)"`
	Stat     string `gorm:"type:varchar(50)"`
}
type Order struct {
	gorm.Model
	OrderName string `gorm:"type:varchar(50)"`
	Pid       int    `gorm:"type:int"`
}
type RoleNote struct {
	gorm.Model
	RoleID int `gorm:"type:int"`
	NoteID int `gorm:"type:int"`
}
type NoteRole struct {
	Id       int
	NoteName string
}
type UserRole struct {
	gorm.Model
	UserID int `gorm:"type:int"`
	RoleID int `gorm:"type:int"`
}
type RoleUser struct {
	ID       int
	RoleName string
}
type ShopRole struct {
	ID        int
	ShopName  string
	Stat      string
	OrderName string
	Pid       int
}
